Optimal. Leaf size=30 \[ -\frac{5 x}{2}+2 \sqrt{2} \tanh ^{-1}\left (\sqrt{2} \tanh (x)\right )-\frac{1}{2} \sinh (x) \cosh (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0589306, antiderivative size = 30, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.267, Rules used = {3191, 414, 522, 206} \[ -\frac{5 x}{2}+2 \sqrt{2} \tanh ^{-1}\left (\sqrt{2} \tanh (x)\right )-\frac{1}{2} \sinh (x) \cosh (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3191
Rule 414
Rule 522
Rule 206
Rubi steps
\begin{align*} \int \frac{\cosh ^4(x)}{1-\sinh ^2(x)} \, dx &=\operatorname{Subst}\left (\int \frac{1}{\left (1-2 x^2\right ) \left (1-x^2\right )^2} \, dx,x,\tanh (x)\right )\\ &=-\frac{1}{2} \cosh (x) \sinh (x)-\frac{1}{2} \operatorname{Subst}\left (\int \frac{-3-2 x^2}{\left (1-2 x^2\right ) \left (1-x^2\right )} \, dx,x,\tanh (x)\right )\\ &=-\frac{1}{2} \cosh (x) \sinh (x)-\frac{5}{2} \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\tanh (x)\right )+4 \operatorname{Subst}\left (\int \frac{1}{1-2 x^2} \, dx,x,\tanh (x)\right )\\ &=-\frac{5 x}{2}+2 \sqrt{2} \tanh ^{-1}\left (\sqrt{2} \tanh (x)\right )-\frac{1}{2} \cosh (x) \sinh (x)\\ \end{align*}
Mathematica [A] time = 0.0686895, size = 32, normalized size = 1.07 \[ -2 \left (\frac{5 x}{4}+\frac{1}{8} \sinh (2 x)-\sqrt{2} \tanh ^{-1}\left (\sqrt{2} \tanh (x)\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.032, size = 98, normalized size = 3.3 \begin{align*} 2\,\sqrt{2}{\it Artanh} \left ( 1/4\, \left ( 2\,\tanh \left ( x/2 \right ) +2 \right ) \sqrt{2} \right ) +{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-2}}-{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}-{\frac{5}{2}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) }+2\,\sqrt{2}{\it Artanh} \left ( 1/4\, \left ( 2\,\tanh \left ( x/2 \right ) -2 \right ) \sqrt{2} \right ) -{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-2}}-{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}+{\frac{5}{2}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.53231, size = 101, normalized size = 3.37 \begin{align*} \sqrt{2} \log \left (-\frac{\sqrt{2} - e^{\left (-x\right )} + 1}{\sqrt{2} + e^{\left (-x\right )} - 1}\right ) - \sqrt{2} \log \left (-\frac{\sqrt{2} - e^{\left (-x\right )} - 1}{\sqrt{2} + e^{\left (-x\right )} + 1}\right ) - \frac{5}{2} \, x - \frac{1}{8} \, e^{\left (2 \, x\right )} + \frac{1}{8} \, e^{\left (-2 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.51314, size = 552, normalized size = 18.4 \begin{align*} -\frac{\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} + 20 \, x \cosh \left (x\right )^{2} + 2 \,{\left (3 \, \cosh \left (x\right )^{2} + 10 \, x\right )} \sinh \left (x\right )^{2} - 8 \,{\left (\sqrt{2} \cosh \left (x\right )^{2} + 2 \, \sqrt{2} \cosh \left (x\right ) \sinh \left (x\right ) + \sqrt{2} \sinh \left (x\right )^{2}\right )} \log \left (-\frac{3 \,{\left (2 \, \sqrt{2} - 3\right )} \cosh \left (x\right )^{2} - 4 \,{\left (3 \, \sqrt{2} - 4\right )} \cosh \left (x\right ) \sinh \left (x\right ) + 3 \,{\left (2 \, \sqrt{2} - 3\right )} \sinh \left (x\right )^{2} - 2 \, \sqrt{2} + 3}{\cosh \left (x\right )^{2} + \sinh \left (x\right )^{2} - 3}\right ) + 4 \,{\left (\cosh \left (x\right )^{3} + 10 \, x \cosh \left (x\right )\right )} \sinh \left (x\right ) - 1}{8 \,{\left (\cosh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.15401, size = 82, normalized size = 2.73 \begin{align*} \frac{1}{8} \,{\left (10 \, e^{\left (2 \, x\right )} + 1\right )} e^{\left (-2 \, x\right )} - \sqrt{2} \log \left (\frac{{\left | -4 \, \sqrt{2} + 2 \, e^{\left (2 \, x\right )} - 6 \right |}}{{\left | 4 \, \sqrt{2} + 2 \, e^{\left (2 \, x\right )} - 6 \right |}}\right ) - \frac{5}{2} \, x - \frac{1}{8} \, e^{\left (2 \, x\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]